/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace DaveSexton.DocProject
{
	public sealed class CapturedBuildEvent
	{
		#region Public Properties
		public TraceEventType EventType { get { return type; } }
		public string Category { get { return category; } }
		public string Message { get { return message; } }
		public string File { get { return file; } }
		public int Line { get { return line; } }
		public string TraceMessage { get { return traceMessage; } }
		#endregion

		#region Private / Protected
		private readonly TraceEventType type;
		private readonly string category;
		private readonly string message;
		private readonly string file;
		private readonly int line;
		private readonly string traceMessage;
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="CapturedBuildEvent" /> class.
		/// </summary>
		public CapturedBuildEvent(TraceEventType type, string category, string message, string file, int line, string traceMessage)
		{
			this.type = type;
			this.category = category;
			this.message = message;
			this.file = file;
			this.line = line;
			this.traceMessage = traceMessage;
		}
		#endregion
	}
}
